<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜索客服事件</title>
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/global.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/listTable.js"></script>

<script language="JavaScript"  src="${ctx}/scripts/common.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/div/common.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/ajaxException.js"></script>
<%@ include file="/commons/validation.jsp"%>
<script type="text/javascript">
	function getAssociateCSEvenId(){
		var selectIds = document.frames["customerEventSearchList"].getAssociateCSEvenId();

		var url = "${ctx}/customerService_custServEventAction.do?method=associateCSEvent";
		var param = "&eventId=${eventId}&associatedIDs=" + selectIds;

		sendAjaxRequest(url,param,function(result){
			var resultStr = result.responseText;
			ajaxSubmitException(resultStr);
			findFrame("linkTheOtherFrame").flushFrame();
			windowClose();
		});
	}
/***********页面私有方法**************/
function init(){
	initSelectValue("eventStatuz");
}
	//修改事件状态 下拉框的value
function initSelectValue(selectId){
	var options = $(selectId).options;
	for(var i = 0; i < options.length; i++){
		if(options[i].code != "undefined" && options[i].code != null && options[i].code != "")
			options[i].value = options[i].code;
	}
}
</script>
</head>

<body onload="init();">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><span class="window_head_intext"><img src="${ctx}/images/ico_Advance.gif" align="absmiddle" />&nbsp;搜索客服事件</span></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td valign="middle" class="content">

	<table width="100%" border="0" cellpadding="0" cellspacing="1">

	<tr>
	<form id="searchForm" target="customerEventSearchList" class="required-validate" method="post"
			action="${ctx}/customerService_custServEventAction.do?method=queryCustomerEventSearchList">
	  <input type="submit" id="mySubmit" name="mySubmit" style="display:none">
	  <input type="hidden" >
      <td class="bg_search2">
 <table border="0" cellpadding="0" cellspacing="1" id="search01">
   <tr>
     <td class="td_search">房 号：</td>
     <td class="td_search">
			<input id="houseNumber" name="houseNumber" type="text" class="inputtext validate-char"
	                		   value="" size="16" maxlength="10"/>
     </td>
     <td height="23" class="grid align_left" >详细地点：</td>
     <td class="td_search">
            	<input id="fullAddress" name="fullAddress" type="text"
            		  class="inputtext validate-char" value="" size="16" maxlength="100" />
     </td>
     <td class="td_search">事件状态：</td>
     <td class="td_search">
		<mypms:Sysrefcode id="eventStatuz" name="eventStatuz" code="CUST_SERVICE_EVENT_EVENT_STATUZ"></mypms:Sysrefcode>
     </td>
     <td class="td_search">&nbsp;</td>
     <td class="td_search">&nbsp;</td>
     <td class="td_search">&nbsp;</td>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <td class="grid align_left" >联系人：</td>
     <td class="td_search">
            	<input name="contact" type="text" class="inputtext validate-char" maxlength="36"
            		   value="" size="16" />
     </td>
     <td class="td_search">事件性质：</td>
     <td class="td_search">
   				<pms:unitedSelect name="eventNatureKeyword"
   								style="width:110px;"
   								dataList="${eventNature}"
   								optionLabel="name"
   								optionValue="keyword"
   								selectText="请选择...">
   				</pms:unitedSelect>
     </td>
     <td class="td_search">&nbsp;</td>
     <td class="td_search">&nbsp;</td>
     <td class="td_search">
     	<table border="0" cellpadding="0" cellspacing="0" >
	       <tr>
	         <td class="buttonOffLeft" id="btn1_11"></td>
	         <td class="buttonOffMiddle" id="btn1_12"
	         		onblur="btn_change(1)"
	         		onclick="mySubmit.click();"
	         		onMouseOver="btn_change_over(1)"
	         		onMouseOut="btn_change_out(1)">
	         		<img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle" /> 查
	           询</td>
	         <td class="buttonOffRight" id="btn1_13"></td>
	       </tr>
     </table></td>
     <td class="td_search">&nbsp;</td>
     <td class="td_search">
   </tr>
 </table></td>
 </form>
    </tr>
          <tr>
            <td>

<div>
  <table width="100%" border="0" cellpadding="0" cellspacing="0"   class="tab_line">
    <tr>
      <td class="bg_toolBar"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
          <td align="right"><!--------------------------右边图标01----------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" id="ico1">
                  <tr>
                  </tr>
                </table>
            <!--------------------------右边图标end----------------------------------->          </td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td valign="top">
		<iframe  id="customerEventSearchList"
			name="customerEventSearchList" height="300px" frameborder="0" border="0"  width="100%"
			src="${ctx}/customerService_custServEventAction.do?method=initCustomerEventSearchList" ></iframe>
</div></td>
            </tr>
        </table>
	</td>
  </tr>
  <tr>
    <td colspan="2" class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
          <td class="btn_between_space"></td>
          <td><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="buttonOffLeft" id="btn1_21"></td>
                <td class="buttonOffMiddle" id="btn1_22" onClick="getAssociateCSEvenId();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onBlur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 确 定</td>
                <td class="buttonOffRight" id="btn1_23"></td>
              </tr>
          </table></td>
          <td class="btn_between_space"></td>
          <td><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="buttonOffLeft" id="btn1_31"></td>
                <td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onBlur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 取 消</td>
                <td class="buttonOffRight" id="btn1_33"></td>
              </tr>
          </table></td>
        </tr>
          </table>
      <p>&nbsp;</p></td>
  </tr>
</table>
</body>
</html>